import PageTools from './PageTools/index.vue'
import UploadExcel from './UploadExcel/index.vue'
import ImageUpload from './ImageUpload/index.vue'
import ThemePicker from './ThemePicker/index.vue'
import LangSelect from './LangSelect/index.vue'
import Print from 'vue-print-nb'
export default {
  // vue.use() 会执行这个方法
  install(Vue) {
    [PageTools, UploadExcel, ImageUpload].forEach(t => {
      Vue.component(t.name, t)
    })
    Vue.component('ThemePicker', ThemePicker)
    Vue.component('LangSelect', LangSelect)
    Vue.use(Print)
    // Vue.component(PageTools.name, PageTools)
    // Vue.component(UploadExcel.name, UploadExcel)
  }
}

